package com.github.fujianlian.klinechart.draw;

/**
 * @author fujianlian Created on 2018/8/20 11:09
 * @descripe MainDraw当前子视图
 */
public interface Status {
    public final static Sta MA = new Sta(0, "MA"),
            BOLL = new Sta(1, "BOLL"),
            ENE = new Sta(2, "ENE"),
            MA_BOLL = new Sta(3, "MA_BOLL"),
            MA_ENE = new Sta(4, "MA_ENE"),
            ENE_BOLL = new Sta(5, "ENE_BOLL"),
            NONE = new Sta(0, "NONE");

    public static Status.Sta status(int id) {
        switch (id) {
            case 0:
                return MA;
            case 1:
                return BOLL;
            case 2:
                return ENE;
            case 3:
                return MA_BOLL;
            case 4:
                return MA_ENE;
            case 5:
                return ENE_BOLL;
        }
        return NONE;
    }

    public static class Sta {
        int id;
        String name;

        public Sta(int id, String name) {
            this.id = id;
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public int getId() {
            return id;
        }

    }
}
